﻿namespace = decision_company

decision_company.1 = {
	type = country_event
	placement = ROOT

	title = decision_company.1.t
	desc = decision_company.1.d
	flavor = decision_company.1.f

	event_image = {
		video = "gfx/event_pictures/africa_construction_colony.bk2"
	}

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/africa/construction_colony"

	icon = "gfx/interface/icons/event_icons/event_map.dds"

	duration = 2

	trigger = {
		# triggered by journal entry
	}

	immediate = {
		c:RNC = {
			save_scope_as = company_scope
		}
	}

	option = { 
		name = decision_company.1.a
		default_option = yes
				
		c:RNC = {
			add_modifier = {
				name = new_company_charter
				months = long_modifier_time
			}
		}

		hidden_effect = {
			c:RNC = {
				ruler = { kill_character = yes }
			}
		}

	}

	option = { 
		name = decision_company.1.b
		default_option = yes

		play_as = c:RNC	
		
		c:RNC = {
			add_modifier = {
				name = new_company_charter
				months = long_modifier_time
			}
		}

		hidden_effect = {
			c:RNC = {
				ruler = { kill_character = yes }
			}
		}

	}
}

decision_company.2 = {
	type = country_event
	placement = ROOT

	title = decision_company.2.t
	desc = decision_company.2.d
	flavor = decision_company.1.f

	event_image = {
		video = "gfx/event_pictures/africa_construction_colony.bk2"
	}

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/africa/construction_colony"

	icon = "gfx/interface/icons/event_icons/event_map.dds"

	duration = 2

	trigger = {
		# triggered by journal entry
	}

	immediate = {
		c:BSA = {
			save_scope_as = company_scope
		}
	}
	
	option = { 
		name = decision_company.1.a
		default_option = yes
				
		c:BSA = {
			add_modifier = {
				name = new_company_charter
				months = long_modifier_time
			}
		}

		hidden_effect = {
			c:BSA = {
				ruler = { kill_character = yes }
			}
		}

	}

	option = { 
		name = decision_company.1.b
		default_option = yes

		play_as = c:BSA
		
		c:BSA = {
			add_modifier = {
				name = new_company_charter
				months = long_modifier_time
			}
		}

		hidden_effect = {
			c:BSA = {
				ruler = { kill_character = yes }
			}
		}

	}
}

decision_company.3 = {
	type = country_event
	placement = ROOT

	title = decision_company.3.t
	desc = decision_company.3.d
	flavor = decision_company.1.f

	event_image = {
		video = "gfx/event_pictures/africa_construction_colony.bk2"
	}

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/africa/construction_colony"

	icon = "gfx/interface/icons/event_icons/event_map.dds"

	duration = 2

	trigger = {
		# triggered by journal entry
	}

	immediate = {
		c:GEA = {
			save_scope_as = company_scope
		}
	}
	
	option = { 
		name = decision_company.1.a
		default_option = yes

		c:GEA = {
			add_modifier = {
				name = new_company_charter
				months = long_modifier_time
			}
		}
			
		hidden_effect = {
			c:GEA = {
				ruler = { kill_character = yes }
			}
		}

	}

	option = { 
		name = decision_company.1.b
		default_option = yes

		play_as = c:GEA
		
		c:GEA = {
			add_modifier = {
				name = new_company_charter
				months = long_modifier_time
			}
		}

		hidden_effect = {
			c:GEA = {
				ruler = { kill_character = yes }
			}
		}

	}
}

decision_company.4 = {
	type = country_event
	placement = ROOT

	title = decision_company.4.t
	desc = decision_company.4.d
	flavor = decision_company.1.f

	event_image = {
		video = "gfx/event_pictures/africa_construction_colony.bk2"
	}

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/africa/construction_colony"

	icon = "gfx/interface/icons/event_icons/event_map.dds"

	duration = 2

	trigger = {
		# triggered by journal entry
	}

	immediate = {
		c:IAC = {
			save_scope_as = company_scope
		}
	}
	
	option = { 
		name = decision_company.1.a
		default_option = yes
				
		c:IAC = {
			add_modifier = {
				name = new_company_charter
				months = long_modifier_time
			}
		}

		hidden_effect = {
			c:IAC = {
				ruler = { kill_character = yes }
			}
		}

	}

	option = { 
		name = decision_company.1.b
		default_option = yes

		c:IAC = {
			add_modifier = {
				name = new_company_charter
				months = long_modifier_time
			}
		}

		play_as = c:IAC
		
		hidden_effect = {
			c:IAC = {
				ruler = { kill_character = yes }
			}
		}

	}
}
